package com.ripplezjw.blog.mapper;

import com.ripplezjw.blog.po.Article;
import com.ripplezjw.blog.po.Classification;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ClassificationMapper {
    int insertCls(String clsName);

    int findClsIdByClsName(String clsName);

    String findClsNameByArticleId(int articleId);

    int cntClassificationByClsName(String clsName);

    List<Classification> findClassifications();

    int addClassifications(Classification classification);
    int updateClassificationByClsId(Classification classification);
    int delClassificationByClsId(int clsId);
    Classification findClassificationById(int clsId);

    List<Article> findArticleIdByClsId(int clsId);
}
